/*初始化*/
* {
    padding: 0;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, input {
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    font: 20px/1.5 Arial, Helvetica, sans-self, "Microsoft YaHei";
}

img {
    border: 0;
    vertical-align: top;
}

li {
    list-style: none;
}

i, em {
    font-style: normal;
}

a {
    text-decoration: none;
}

a, input, select, textarea {
    outline: none;
}

input {
    font-size: .7rem;
}

input, select,textarea {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 5rem #fff inset;
}

/*清除浮动*/
.cf:before, .cf:after {content: "";display: table;}
.cf:after {clear: both;}

/*button*/
.btn {
    display: inline-block;
    font-size: .7rem;
    padding: .4rem .6rem;
    color: #1381f1;
    border: .05rem solid currentColor;
    white-space: nowrap;
    -o-border-radius: .25rem;
    -moz-border-radius: .25rem;
    -webkit-border-radius: .25rem;
    border-radius: .25rem;
}
.r0{
    -o-border-radius: 0;
    -moz-border-radius: 0;
    -webkit-border-radius: 0;
    border-radius: 0;
}
.r3 {
    -o-border-radius: .15rem;
    -moz-border-radius: .15rem;
    -webkit-border-radius: .15rem;
    border-radius: .15rem;
}
.r5 {
    -o-border-radius: .25rem;
    -moz-border-radius: .25rem;
    -webkit-border-radius: .25rem;
    border-radius: .25rem;
}

.r10 {
    -o-border-radius: .5rem;
    -moz-border-radius: .5rem;
    -webkit-border-radius: .5rem;
    border-radius: .5rem;
}

.r50 {
    -o-border-radius: 50%;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
}

.t50 {
    -o-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.unselect {
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

/*容器*/
.flex {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
}

/*从上到下显示*/
.flex-v {
    -webkit-box-direction: normal;
    -webkit-box-orient: vertical;
    -moz-flex-direction: column;
    -webkit-flex-direction: column;
    flex-direction: column;
}

/*从右到左*/
.flex-end {
    -webkit-box-pack: end;
    -webkit-box-direction: reverse;
    -webkit-box-orient: horizontal;
    -moz-flex-direction: row-reverse;
    -webkit-flex-direction: row-reverse;
    flex-direction: row-reverse;
}

/*x轴两端对齐*/
.flex-x-between {
    -webkit-box-pack: justify;
    -moz-justify-content: space-between;
    -webkit-justify-content: space-between;
    justify-content: space-between;
}

/*居中*/
.flex-x-center {
    -webkit-box-pack: center;
    -moz-justify-content: center;
    -webkit-justify-content: center;
    justify-content: center;
}

/*右对齐*/
.flex-x-end {
    -webkit-box-pack: end;
    -moz-justify-content: flex-end;
    -webkit-justify-content: flex-end;
    justify-content: flex-end;
}

/*允许换行*/
.flex-wrap {
    -moz-box-lines: multiple;
    -webkit-box-lines: multiple;
    box-lines: multiple;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

/*====子元素====*/
.flex-list {
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    -ms-flex: 1;
    box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
}

/*mask*/
.mask {
    position: fixed;
    z-index: 9999;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, .8);
}

.mask > div {
    position: absolute;
    z-index: 10000;
    background: #fff;
    width: 15rem;
    left: 50%;
    top: 50%;
    -moz-transform:translate(-50%,-50%);
    -webkit-transform:translate(-50%,-50%);
    transform:translate(-50%,-50%);
}

/*dialog*/
.dialog-box > div {
    -webkit-animation: fadeInDown .5s linear;
    animation: fadeInDown .5s linear;
}

.dialog-box > div > div {
    text-align: center;
    font-size: .8rem;
}

.dialog-box > div > div:nth-child(1) {
    padding: 1rem 0 .7rem 0;
}

.dialog-box > div > div:nth-child(2) {
    padding: 0 1rem;
    color: #888;
    max-height:6rem;
    overflow-y: auto;
}

.dialog-box > div > div:nth-child(2) span {
    color: #00A3FF;
    font-weight: bold;
}

.dialog-box > div > div:nth-child(3) {
    margin-top: 1rem;
    border-top: .05rem solid #d5d5d5;
}

.dialog-box > div > div:nth-child(3) > a {
    color: #00A3FF;
    text-decoration: none;
    padding: .5rem 0;
}

.dialog-box > div > div:nth-child(3) > a.ok {
    border-left: .05rem solid #d5d5d5;
}

/*animation*/
@-webkit-keyframes fadeInDown {
    0% {
        opacity: 0;
        top:40%;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        top:40%;
    }

    100% {
        opacity: 1;
    }
}
